Site Menu.
My Desktop.
:0.
Main Blog Page.
Site map.
Linux Information.
Image Browser.
Misc Doom Files.
Doom Wadfiles.
Yadex Editing Page.
CGI Code.
Perl Code.
Linux Configs.
My Linux System.
Console Cheats.
Misc Cheats.
PSX Doom Page.
Zdoom ACS.
The Shit List.
windows 3.0 Page.
Fun Flash game.
Racing game.
Blog Archives.
Blog Archives.
Misc Text Files.
maps/dmfaq66a.txt
maps/dmfaq66b.txt
maps/dmfaq66c.txt
maps/dmfaq66d.txt
maps/doom1-08.txt
maps/Q2m1.txt
maps/Q2m2.txt
maps/Qm1.txt
maps/Qm2.txt
maps/blood.txt
maps/boomdeh.txt
maps/boomref.txt
Misc American Images.
September 11.
My .cshrc file. ~/.cshrc.
My .bashrc file. ~/.bashrc.
My .zshrc file. ~/.zshrc.
My Blackbox style file.
chernobyl.
Downloads.
These files are uuencoded because the tripod.com setup does not allow you to
download files like *.bz2 and *.zip files. Since these are GNU/Linux files, I
am encoding the files this way so they can be easily downloaded and uudecoded
simply. It is best to create a new folder to save the files into so when you
uudecode them you can easily find the files that are created.
My sysinfo program.
sys.txt. Download this into a new directory & type uudecode
sys.txt to undecode. This will give you sys.tar.bz2, then type
tar -jxvf sys.tar.bz2.
Or here:http://one.
fsphost.com/goten/sysinfo.kdevelop-1.0.tar.bz2.
Target
Puzzle Solver. Solves the smh.com.au Sydney
Morning Herald Target puzzle. Download this and type uudecode
target.txt. This gives you target.c. Program written by Rod Johnson
, November 6, 1995. I have hacked on this program to make it better and
easier to use for a CGI script.
Configuration files.
My fvwm config file. This gives a Windows/Fvwm95 look with some very nice
Window Decorations and a good color scheme. But without the ugly Windows
wallpaper. That really does not look good.
~/.fvwm/.fvwm2rc.
Also needs this optional perl script in your $PATH.
~/bin/fvwm-desktop.
My .emacs file. ~/.emacs.
|
CGI Sample Code.
Loading a file into the browser in Python. Works very well indeed!
Re-Written as of March 31 2006. Using PRE and XMP tags to print out
the text correctly. Tested in Apache 2.0. I have defined some
functions to print out a HTTP header as I do not know how to use the
python cgi module yet. Re-Written. 11 April 2005.
#!/usr/bin/python
from datetime import datetime
import os
def cgi1():
print "Content-type: text\html\n"
print "\n \
\n"
def cgi2():
print "\n"
def cgi3():
print "Viewing some undoubtedly cool file. \n"
# main()
cgi1()
print "Python CGI page..\n"
i = datetime.now().strftime("%A, %d, %B, %Y - %H:%M:%S.")
print "The date and time is....",i
print " "
environ=os.environ
Browser = environ['HTTP_USER_AGENT']
myLine = ' '
FH=file("log.txt","r")
cgi3()
while not myLine == '':
myLine=FH.readline()
if myLine == '':
print myLine,"EOF. "
else:
print myLine," "
FH.close()
print "This script written in Python. http://www.python.org "
print Browser
print ""
cgi2()
PHP Random Image & Links script. Picks a random image from a list.
Doom Screenshots. Shit Smearing aplenty!
My PHP page.
You are using %s browser to visit @ %s time.\n", $browser, $time);
$links = array("BejArray" => array("0" => "http://www.quake4.com", "1" => "http://nami.mancubus.net",
"2" => "http://www.debian.org", "3" => "http://www.somethingaweful.com",
"4" => "http://www.slashdot.org", "5" => "http://castlevania.wrong.button.com/",
"6" => "http://doomdepot.doom2.net/index.html"
));
printf("Random Image Script.\n");
if (!$img) {
switch ($day) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
printf(" \n", $day);
continue;
}
}
else {
printf(" \n", $img);
}
echo $string;
printf("Random Link. %s \n", $links["BejArray"][$day]);
printf("
%s \n", $val);
?>
And the above program in C. A work in progress.
/* Emacs style mode select: -*- linux-c -*-
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/********************************************************************
* Description: Random Link CGI Script.
* Author: Saruman <>
* Created at: Sun Sep 11 02:05:26 EST 2005
* Computer: Battlestar
* System: Linux 2.6.10 on i686
*
* Copyright (c) 2005 Saruman All rights reserved.
*
********************************************************************/
#include
#include
#include
const char *links[] = {
"http://s2.enemy.org",
"http://www.planetps2. com",
"http://www.redhat.com",
"http://www.atomicmpc.com.au",
"http://www.somethingaweful.com",
"http://www.debian.org"
};
void html()
{
printf("Content-type: text/html\n\n");
printf("\n");
printf("\n");
printf("\n");
}
void html2()
{
printf(" |